<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/scs_activity/Public/assets/css/amui.all.min.css">
    <link rel="stylesheet" href="/scs_activity/Public/assets/css/app.css">
    <script src="/scs_activity/Public/assets/js/zepto.min.js"></script>
    <script src="/scs_activity/Public/assets/js/amui.min.js"></script>
</head>
<body>
<header id="amz-header" class="head" style="z-index:1000;">
<div class="amz-container am-cf">
    <h1>
        <a href="/landing.jsp">SCS Activity</a>
    </h1>
    <nav>
        <ul class="amz-header-nav am-collapse">
            <li>
                <a href="/scs_activity/index.php/Home/Activity/index">添加活动</a>
            </li>
            <li >
                <a href="/scs_activity/index.php/Home/Activity/regActivity">所有活动</a>
            </li>
            <li>
                <a href="/scs_activity/index.php/Home/Activity/mngActivity">活动管理</a>
            </li>
            <li style="padding-right: 50px;">
                <a href="/scs_activity/index.php/Home/Assign/index">授权管理</a>
            </li>

            <li >
                <a style="padding:0">欢迎,<?php echo ($_SESSION['user']['userid']); ?></a>
            </li>

            <li class="nav-profile need-check">
                <a title="退出登录" href="/scs_activity/index.php/Home/Login/logout">
                    <img width="24" height="24" src="/scs_activity/Public/assets/i/logout.jpg">
                    <span class="am-icon-sign-out"></span>
                </a>
            </li>
        </ul>
    </nav>
</div>
</header>
<div class="amz-banner">
    <div data-am-scrollspy="{animation: 'scale-up', repeat: true}" class="amz-container am-scrollspy-init am-scrollspy-inview am-animation-scale-up" >

        <h1>软件学院活动管理网站</h1>
        <p>期待你的参与，共同管理学生活动.</p>
        <!-- 按钮触发器， 需要指定 target -->
    </div>
</div>
  <?php if($_SESSION['user']['userid']== '' ): ?><script type="text/javascript">
        alert('Login First!!!');
        window.location.href="/scs_activity/index.php/Home/Activity/loginRedirect";
      </script>
      <?php else: endif; ?>
</body>
</html>




<section>管理活动
    <div class="am-container">
        <table class="am-table am-table-bd">
            <thead>
            <tr>
                <th>活动时间</th>
                <th>活动名称</th>
                <th>通过</th>
                <th>修改</th>
                <th>驳回</th>
                <th>删除</th>
            </tr>
            </thead>
            <tbody>
            <?php if(is_array($act_list)): $i = 0; $__LIST__ = $act_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$act): $mod = ($i % 2 );++$i;?><tr>
                    <th><?php echo ($act["atime"]); ?></th>
                    <th><?php echo ($act["atheme"]); ?></th>
                    <th><a type="button" class="am-btn am-btn-primary" href="/scs_activity/index.php/Home/Activity/allowActivity/aid/<?php echo ($act["aid"]); ?>">通过</a></th>
                    <th><a type="button" class="am-btn am-btn-primary" href="/scs_activity/index.php/Home/Activity/getActivity/aid/<?php echo ($act["aid"]); ?>">修改</a></th>
                    <th><a type="button" class="am-btn am-btn-primary" href="/scs_activity/index.php/Home/Activity/rejectActivity/aid/<?php echo ($act["aid"]); ?>">驳回</a></th>
                    <th><a type="button" class="am-btn am-btn-primary" href="/scs_activity/index.php/Home/Activity/deleteActivity/aid/<?php echo ($act["aid"]); ?>">删除</a></th>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>

    </div>
    <div class="am-container">
        <div class="col-md-3">&nbsp;</div>
        <div class="am-col-md-6">
            <ul class="am-pagination">
                <li class="am-disabled"><a href="#">&laquo;</a></li>
                <li class="am-active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
            </ul>
        </div>
        <div class="col-md-3"></div>

    </div>


</section>

<div id="topBottomBar">
    <div>
        <a  data-am-smooth-scroll class="am-icon-btn am-icon-arrow-up am-active" title="回到顶部" href="#top"></a>
    </div>
</div>
<br><br><br><br><br><br>
<footer class="footer" style="position:fixed;bottom:0px;width:100%;z-index:10000">
    <p>&copy; 2014 <a target="_blank" href="#">TJUSCS</a> Licensed under <a target="_blank" href="http://scs.tju.edu.cn/">School of Computer Software</a>. Designed by Jungle King.</p>
</footer>